//
//  MyMotionManager.h
//  TuoLuoYi
//
//  Created by Faker on 5/22/14.
//  Copyright (c) 2014 Faker. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreMotion/CoreMotion.h>

@interface MyMotionManager : NSObject

@property (strong, nonatomic) CMMotionManager* motionManager;

+(MyMotionManager*)sharedInstance;

//某个视图绕着某一个轴做顺时针还是逆时针旋转 ,interVal为陀螺仪的刷新频率
-(void)moveView:(UIView*)mView  andUpdateInterVal:(float)interVal andScrollXYZ:(NSString*)xyz andIsRight:(BOOL)isRight;

-(void)moveView:(UIView*)mView andOutView:(UIView*)outView  andUpdateInterVal:(float)interVal andScrollXYZ:(NSString*)xyz andIsRight:(BOOL)isRight;

//停止陀螺仪的监测
-(void)stopUpdate;
@end
